/*
 * gy33streamparser.h
 *
 *  Created on: 2018年8月22日
 *      Author: Administrator
 */

#ifndef PROFILES_GY33STREAMPARSER_H_
#define PROFILES_GY33STREAMPARSER_H_

#include <stdlib.h>


#ifdef __cplusplus
extern "C" {
#endif



#define PARSER_CODE_RAWRGB              0x15
#define PARSER_CODE_LTSC                0x25
#define PARSER_CODE_PROCESSRGB          0x45
#define PARSER_CODE_IICADDRESS          0x55

void *GY33_initParser(void (*handleDataValueFunc)(
                          unsigned char code, const unsigned char *value,
                          unsigned char numBytes, void *customData),
                      void *customData);

void GY33_ParserDestory(void *handle);


int GY33_parseByte(void *parser, unsigned char byte);


#ifdef __cplusplus
}  /* extern "C" */
#endif


#endif /* PROFILES_GY33STREAMPARSER_H_ */
